<template>
  <div class="col-md-8">
    <h3 class="reply">评论回复：</h3>
    <h2 :style="{display: comments.length===0? 'block':'none'}">暂无评论，点击左侧添加评论！！！</h2>

    <ul class="list-group">
      <Item v-for="(comment,index) in comments" :key="comment.id" :comment="comment" :index="index" :deleteComment="deleteComment"></Item>
    </ul>
  </div>
</template>

<script>
import Item from "./Item.vue"
export default {
  name: '',
  components: {
    Item
  },
  props: {
    comments: Array,
    deleteComment: Function,
  }
}
</script>

<style  scoped>
.reply {
  margin-top: 0px;
}


</style>
